export default {
    namespaced:true,//命名空间namespaced:true
    state:{
        leftTitle:'',
    },
    mutations:{
        changeState(state,payload){
            if(payload.parentName){//只要它存在，那么说明传入的页面不是首页，那么就得有‘-’
                state.leftTitle=payload.parentName+" - "+payload.title;
            }else{
                state.leftTitle=payload.title;
            }

        },

    },
    action:{

    }
}